package com.suxin.plugin.intergration.factory.process.pip;

import com.suxin.plugin.intergration.factory.PluginRegistryInfo;

/**
 * @author Tang
 * @classname PluginPipeProcessor
 * @description [ 插件管道处理者接口 ]
 * @date 2022/7/21 21:18
 */
public interface PluginPipeProcessor {

    /**
     * 初始化
     * @throws Exception
     */
    void initialize() throws Exception;

    /**
     * 处理该插件的注册
     * @param pluginRegistryInfo
     * @throws Exception
     */
    void registry(PluginRegistryInfo pluginRegistryInfo) throws Exception;

    /**
     * 处理该插件的卸载
     * @param pluginRegistryInfo
     */
    void unRegistry(PluginRegistryInfo pluginRegistryInfo);

}
